package sharedClasses;
import java.io.Serializable;
import java.util.ArrayList;


public class Play implements Serializable
{
	private int playID;
	public ArrayList<Action> Children;
	public int Rotation; //1-6 for rotations, 0 to not pass a rotation to the program
	
	public Play(int id)
	{
		playID = id;
	}
	
	public void addAction(Action act){
		if(act !=null)
	    	Children.add(act);
	}
	
	public ArrayList<Action> getChildren(){
		return Children;
	}
	
	public Play()
	{
		playID = 0;
		Children = new ArrayList<Action>();

	}
	
	public int getPlayID()
	{
		return playID;
	}
	
	public int getResult()
	{
		return Children.get(Children.size() - 1).getResult();
	}
}
